#ifndef __CRC_CHEDK_H__
#define __CRC_CHEDK_H__



#include "main.h"


uint8_t Get_Crc_8_value(uint8_t *buffer, uint8_t len);

uint16_t ModBusCRC16(uint8_t* pBuffer, uint16_t length) ;

uint32_t CalcCrc32(uint32_t crcInit, uint8_t* pBuffer, uint32_t length);

uint32_t firmware_check_crc32(uint8_t *buffer, int length);



#endif /* __CRC_CHEDK_H__ */
